using Microsoft.Xna.Framework;
using System;
using System.Windows;
namespace Microsoft.Phone.Controls
{
	internal static class MathHelpers
	{
		public static double GetAngle(double deltaX, double deltaY)
		{
			double num = Math.Atan2(deltaY, deltaX);
			if (num < 0.0)
			{
				num = 6.2831853071795862 + num;
			}
			return num * 360.0 / 6.2831853071795862;
		}
		public static double GetDistance(Point p0, Point p1)
		{
			double num = p0.get_X() - p1.get_X();
			double num2 = p0.get_Y() - p1.get_Y();
			return Math.Sqrt(num * num + num2 * num2);
		}
		public static Point ToPoint(this Vector2 v)
		{
			return new Point((double)v.X, (double)v.Y);
		}
	}
}
